﻿using Furion.DynamicApiController;
using StackExchange.Redis;
using WesRestApi;
using WesWebCore;

namespace WesWeb.Counter;

public class CounterService : IDynamicApiController
{
    private ICounterApi _counterApi;

    public CounterService(ICounterApi counterApi)
    {
        _counterApi = counterApi;
    }

    public async Task<long> Get()
    {
        var apiResult = await _counterApi.Get();
        return apiResult.Data;
    }
}
